package com.gnerv.cms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gnerv.cms.entity.Catalog;

import java.util.List;

/**
 * <p>
 * CMS平台-栏目表 服务类
 * </p>
 *
 * @author Gnerv LiGen
 * @since 2019-07-01
 */
public interface ICatalogService extends IService<Catalog> {
    boolean createCatalog(Catalog catalog);
    boolean deleteCatalog(String bId);
    boolean updateCatalog(Catalog catalog);
    Catalog selectCatalog(String bId);
    List<Catalog> listCatalog(Catalog catalog);

    boolean bindingArticle(String cId, String aId);

    boolean relieveArticle(String aId);

    List<Catalog> selectCatalogTree(String bId);
}
